Error correction for two tracks in a multitrack system

ABSTRACT

A system for correcting two tracks in error in a multi-track data arrangement is provided. The message data Z1, Z2, . . . Zk is encoded by adding two check bytes C1 and C2 thereto which are generated from the message data which is arranged in blocks of k bytes, where each byte has f bits of data arranged in a cross track direction, where f b X m and m and b are integers &gt;1 and k is an integer 2&lt;k&lt;2b. The check bytes are generated in accordance with the equations:

United States Patent 1 l 1 1] 3,745,528 Patel Juiy i0, @973 ERROR CORRECTION FOR TWO TRACKS and C, thereto which are generated from the message IN A MULTI-TRACK SYSTEM Arvind Motibhai Patel, Wappingers Falls, NY.

Assignee: International Business Machines Corporation, Armonk, N .Y.

Filed: Dec. 27, 1971 Appl. No.: 212,544

Inventor:

US. Cl. 340/1461 AL Int. Cl. 606i 11/12 Field of Search 340/l46.l AL, 146.1 AV,

IMO/146.1 AQ, 172.5

References Cited UNITED STATES PATENTS 3,588,819 6/1971 Tong 340/1461 AV 3,629,824 12/1971 Bossen... 340/l46.l AL 3,675,200 7/l972 Bossen 340/146.l AL

Primary Examiner-Charles E. Atkinson Attorney-W. N. Barret, Jr., Harold H. Sweeney, Jr., I

et a].

[57] ABSTRACT A system for correcting two tracks in error in a multitrack data arrangement is provided. The message data 2,, 2,, 2,, is encoded by adding two check bytes C data which is arranged in blocks of k bytes, where each byte has f bits of data arranged in a cross track direction, where f= b X m and m and b are integers 1 and k is an integer 2 k 2. The check bytes are generated in accordance with the equations:

where T is the companion matrix of a binary primitive polynomial g(x) of degree f and A is an integer given by the expression:

in which t is any positive integer prime to 2-Ii. The encoded message is decoded after usage (indicated by the symbol) by first and second shift registers which generate first and second syndromes from the encoded data in accordance with the equations:

S, ='C,B Z '69Z EB. 692,, s c; e 1 2; BT Z e. .e Wz Error pointers are provided for indicating the tracks in error and the bytes in error in the indicated tracks are corrected in accordance with the error patterns generated by processing the syndromes.

12 Claims, 12 Drawing Figures PATENIEDJCI I mm 3 745 52 8 SHEET 1 0F 7 DATA FIG. 2 2122M 9 I I I0 w DATA DISTRIBUTOR z z --z 1 27 K Z1,Z2, ZK

TIIIIIIC I 02 CONTROL T I g L J l J IA-mp2 YO w'* W XI/k g COUNT 0 TO THE IIIIITI-TRACK 44 RECORDER (0R TRAIIIsIAITTERI K 4 BINARY W COUNTER DELAY TRACK I 2 TRACK 2 Z2 I i TRACK K 2 TRACK K+ I C TRACK K+2 C2 PAIENIEB JUL 1 0197s SHEET 3 0F 7 ERRO CORRECTION FOR TWO 'ilAtCll'I IN A MULTl-TRACK SYSTEM BACKGROUND OF THE INVENTION This invention relates to error detection and correction and, more particularly, to an improved error correcting code and system for detecting and correcting two tracks in error in a multi-track data arrangement.

In data communication systems as well as computers, the information can be coded by adding redundant bits to the data message in such a way that the message can be decoded with a practical amount of apparatus to obtain the original information corrected in the event an error has been introduced. Parallel data arrangements, that is, arrangements where the information is contained in parallel bytes arranged in a block of data, are used in computers and are well known especially in multi-channel recording apparatus. In co-pending application, Ser. No. 10,847, filed on Feb. 12, 1970, now U.S. Pat. No. 3,629,824, encoding and decoding apparatus are disclosed in which the redundant or check bits are associated with the data in a cross byte or cross track direction. This co-pending application sets forth a code capable of correcting one or more errors within a single, multiple bit byte of data. The data is divided into blocks which consist of k bytes of data (each of b bits), plus two check bytes, each of b bits. The decoder is effective in recovering the data without error when not more than a single byte of the received message is in error no matter how many bits may be in error in the single byte. In U. S. Pat. No. 3,319,223, filed Mar. 31, 1964, an error correcting code is disclosed in which the check characters generated from the information are added serially to the message block. The coding and decoding is implemented by means of shift register circuits. Another co-pending application, Ser. No. 99,490, filed Dec. 18, 1970, now U.S. Pat. No. 3,697,948 utilizes the above-identified code but extends the capabilities thereof by combining therewith pointer signals which extend the error correcting capability of the arrangement to two bytes in error regardless of the number of bits in error in each byte.

It is an object of the present invention to provide an his another object of the present invention to provide an error detection and correction system based on a new code which can be mechanized to provide two channel correction as well as detection of a large percentage of other errors without increasing the redundancy.

It is a further object of the present invention to provide an error detection and correction system in which larger size characters or bytes can be utilized without substantially increasing the encoding and decoding time and hardware.

It is a further object of the present invention to provide an error detection and correction code capable of providing correction for two tracks in error in a multichannel system when pointers for the tracks in error are provided.

It is another object of the present invention to provide an error detection and correction system in which all the necessary error correction functions can be realized by means of the same pair of shift registers.

The system for correcting two tracks in error in a multi-traclt data arrangement consists of an encoding means for generating two check bytes C and C, for the message data 2,, Z 2,, which is arranged in blocks having k bytes where each byte has f bits of data extending in a cross track direction where f b X m where b and m are integers 1 and k is an integer 2 k 2. The check bytes are generated in accordance with the equations:

and

c,=r* 2,691 nnet 2,,

where T is the companion matrix of a binary primitive polynomial g(x) of degreefand A. is any integer given by the expression t(2-l )/(2l in which t is any posi tive integer prime to 2"l. The check bytes are appended to the incoming message data to obtain the encoded data for use in a multi-track data system. The encoded data is decoded after usage (indicated by the symbol) by means of first and second shift registers which generate first and second syndromes from the encoded data in accordance with the equations:

S, C Z,'69 Z E 2 and S2: C2'@ T) ZIIQT'ZA Z2I$ .QTIH Zk Error pointers are provided which indicate the tracks in error and means are provided which locate the bytes in error in the tracks in error which can then be corrected in accordance with the errors indicated by the syndromes.

The foregoing and other objects, features and advantages of the invention, will be apparent from the following more particular description of a preferred embodiment of the invention, as illustrated in the accompanying drawings.

FIG. 1 is a schematic diagram showing the data arrangement in a multi-tracl-t data system.

FIG. 2 shows a block diagram for carrying out the encoding of the present invention.

FIG. 3 is a schematic diagram showing the decoder arrangement for the present invention.

FIG. 4 is a schematic diagram showing the organization of the first shift register of the pair of shift registers used for encoding and decoding in the error correction system of the invention.

FIG. 5 is a further schematic diagram showing the second shift register of the pair of shift registers.

FIG. 6 shows the error track parameter generator used in the decoder which includes the FIGS. 6a, bb, 6c and 6d in its overall arrangement.

FIG. 6a is a schematic diagram showing the logic network connections for generating the i pointers.

FIG. 6b is a schematic logic diagram showing the gen eration of the Y parameter.

FIG. 6c is a schematic logic diagramshowing the generation of the X parameter.

FIG. 6d is a schematic logic diagram for generating the control signals N N and N FIG. 7 is a schematic diagram showing the error corrector circuit of the decoder.

FIG. 8 is a schematic logic diagram showing the arrangement for the detection of a large percentage of uncorrectable errors.

It will be appreciated by those skilled in the art that this invention can be applied to lnformation Handling Systems of various capacities. The invention will, therefore, be first described in algebraic terms which are applicable to any size system and subsequently in terms of a specific system.

Data is processed by the system in blocks consisting of k bytes, each byte having f bits of data where f b X m. Here and throughout, b and m designate integers 1 and k is an integer 2 k 2. The values off and k are to be considered invariant for a particular embodiment, but are variously chosen for embodiments of various capacities. A block of data is accordingly designated Z 2,, 2,, wherein Z represents the first byte in the block, 2, the second byte, and so on to Z which represents the k' and last byte. The encoder calculates from the block of incoming data two check bytes, (designated C and C each of f bits and appends the check bytes to the k data bytes to generate the sent message of k+2 bytes. The data format arrangement is shown in FIG. 1. The check bytes are added in separate tracks, parallel and adjacent to the tracks carrying the data bytes. Each byte Z, and C and C, are f bit column vectors in the mathematical equations throughout and can be explicitly written as:.

z, i and Ci Zi (f-l) c (f- The check bytes C and C, are computed from the information bytes Z Z Z using the following matrix equations:

wherein:

GBdenotes the modulo 2 vector sum;

T is the companion matrix of a binary primitive polynomial g(x) of degree f which will be developed further as equation (3). For every f, there exists at least one primitive polynomial of degree f. For a list of primitive polynomials, see W. W. Petersen, Error Correcting Codes, M.I.T. Press, 1961.

T is the i'" power of the matrix T. (Computed using modulo 2 operations).

A is any integer given by the expression:

t( 2--1 2"--l) in which t is any positive integer prime to 2l. Sincef= b X m, the above expression always results in a positive integer. The use of A in this code has particular significance, which will become apparent fromthe discussion with respect to the preferred embodiment to follow.

In order to more clearly explain the invention, a specific value f= 8 has been chosen. The polynomial g(x) of degree 8 can be explicitly written as:

where:

g g, l and g, is either 0 or 1 for: i= 1, 2, 7

The companion matrix T of the polynomial g(x) is defined as:

0 0 0 0 0 o 0 go T= o 0 1 0 0 o 0 93 As was mentioned previously in the Background of the invention, co-pending application, Ser. No. 99,490, filed Dec. 18, 1970, now US. Pat. No. 3,697,948 discloses a multi-track error correction system having k data tracks and two check byte tracks. Two b-digit check bytes are generated from k b-digit information bytes where 2 k 2. It will be appreciated that in this prior art system, the byte size b can be increased. However, the encoding and decoding hardware increases considerably with the increase in size of the bytes participating in the computation. Accordingly, these prior art arrangements have attempted to keep the byte size as small as possible while still satisfying the relation 2 k 2.

There are a number of situations where an increase in the byte size participating in the code word computation is desirable. For example, in computer tape recording systems, dividing binary data tracks into 8-bit bytes is preferred because of the 8-bit byte organization of the main processor. Thus, an 8-bit byte error correction arrangement would be preferred to the 4-bit byte arrangement shown in the co-pending application.

The code generated in this invention is actually a shortened code which possesses an added capability of detecting a certain percentage of errors which cannot be corrected. The percentage R can be estimated as:

R% (l-shortened length/full length) X The full length is defined as 2+l and the shortened length is defined as k+2, i.e., the maximum number of tracks on which the code can be used versus the actual number of tracks. For example, when k 8, using a 4-bit byte gives a detection capability estimated as 53 percent of the other errors as opposed to an estimated 97 percent with an 8-bit byte arrangement.

Although the code generated in this invention is actually a shortened form of a longer code, the encoding and decoding apparatus required is equivalent to that required for the shortened code rather than the longer code. Apparatus is also described for encoding and decoding this special code by means of which two tracks in error can be corrected when track pointers are provided. The actual code generated as a result of this invention can best be described through an example using 8-bit bytes. This arrangement will also be contrasted with the 4-bit byte arrangement of the prior art so that the advantages thereof can better be appreciated. The binary form of the parity check matrix for the 4-bit byte code in its full length is given by:

tive polynomial. One such polynomial is l x x. Accordingly, T is given by:

Dov- O CHOU t-tooo Similarly, the parity check matrix for the 8-bit byte code in its full length is given by:

where 0 and 13 are 8 X 8 zero and identity matrices and T is the companion matrix of the primitive polynomial l x x x x la la Ta Ts Note that T, are elements of the Galois Field GF(2) and T are elements of the Galois Field GF(2 These elements have the properties that T T T, are all distinct and T equals 1 and T T T are all distinct and T equals 1 The Galois Field GF(2 contains a subfield which is isomorphic to GF( 2). The elements of this subfield are given by:

n lsx where:

A t(2 -l)/(2 -l) for any I prime to (2 -1). One such A is 68. These subfield elements have the property:

are all distinct T 1 Furthermore, T and T possess a one-to-one relationship in that the two sets are isomorphic in the Sum" and Product operations of the corresponding Galois Field. Referring to the 8-bit byte code given by the following parity check ma- It is apparent that this code possesses the same mathematical structure as that of the 4-bit byte code ven by t'nfi parity check matrix of equation (4). All the columns in the matrix of equation (8) have an equivalent column in the matrix of equation (6). For example, with:

la Is. Is Is T5 T5 Ta 08 A 68 7 T T8 T885 785 Thus, it can be seen that the fifth column in equation (8) is equivalent to the 85th column in equation (6). It can be seen from the above, that the code constructed using the subfield elements T" is a shortened form of the code given by equation (6). The code can be further shortened in the usual manner, For example, the

3-traclt arrangement can be encoded using the parity check matrix:

H [11 Is It It Is In Is 05 :i (g) x rx ax 7' 0 rn n 0 [3 Accordingly, for A 68, the T is given by:

0 1 n o 0 1 1 o Ta 0 o 1 0 1 o 1 1 10) The preferred embodiment of this invention will be illustrated using the code defined in matrix (9) in an 8- track arrangement with S-bit bytes. Accordingly, the two check bytes C and C are computed from the information bytes Z,, Z Z Z Z Z using the following equations:

C,=I Z 631 Z 63. .691 2,,

(1 After the message has been encoded and utilized at the recorder, the read message bytes are transmitted or conveyed to the decoder. The message is distributed by a read message distributor which sends the encoded message in parallel to a pair of shift registers SR1 and SR2. The decoder computes two expressions known as the syndrome S and S defined as:

The received message byte Z Z Z,,', 6,, C are the read message bytes corresponding to the recorded bytes Z Z Z C C respectively. As was previously mentioned, there may be errors in up to two tracks causing errors in the corresponding bytes. These erroneous tracks are designated by track numbers 1' and j and are identified by pointer signals P, and P, in the form of logical l For convenience, it is required that i j,1s is kand l s j k+2.Thecase,where two indicated erroneous tracks are the check tracks, is ignored.

The pointer" signals are derived from the system in which the error correction is taking place. Of course, there are various means of generating pointer signals such as is set forth in corresponding U. S. Pat. application, Ser. No. 40,836, filed May 26, l970, entitled, Enhanced Error Detection and Correction For Data Systems. in this application, the quality of the record/- read back operations on a real time basis is used as pointers to possible error conditions.

The syndromes generated from the encoded data bytes and check bytes contain the error patterns. These error pattern bytes e, and e, in the bytes corresponding to the tracks i andj (when i=j, we assume e S and 8, have the algebraic equivalent:

y i modulo 2l For each value j-i, the values of parameter x and for each value of i, the parameter y are fixed. These parameters can be computed algebraically. For example, in the preferred embodiment where T T as given in equation (10), the values of x and y are tabulated in Tables 1 and 2.

TABLE 1.PARAMETER a:

j--i= 0 1 2 s 4 :c= o s a 11 12 5 Orj=k+l. Note.-j; k+2.

TABLE 2.-PARAMETER 1/ Using the above computed values of x and y, the errror pattern e, is computed from the syndromes S and S, according to equation (17). The erroneous bytes Z, and 2, can then be corrected using the error pattern e and the syndrome S, to produce the corrected bytes Z, and Z, since:

In summary, the decoding process consists of:

I. Computing the syndromes 5, and from the received message bytes Z Z Z C C according to equations (3) and (4).

2. Computing the error pattern e, from the syndromes S and S, according to equation 17) with proper values of parameters x and y from precalculated tables.

3. Correcting the erroneous bytes with the error pattern e, and the syndrome S according to equations (21) and (22).

4. Detection of the uncorrectable errors according to the following:

4a. When more than two tracks are indicated as being in error, the code cannot provide reliable error correction.

4b. When two tracks are indicated as being in error,

the error pattern bytes 2 and e, have unique values. 4c. When exactly one track is indicated as being in error (the case where i is equal toj), then the error pattern byte e, must be 0 in all bit positions. If the computed e, is not 0 in all bit positions, then this is interpreted as detection of some other errors.

4d. When no track is indicated as being in error, then the syndromes S, and S and, consequently, the error pattern bytes e, and e, must be 0 in all bit positions. If not, this is interpreted as detection of errors.

Utilizing the previous example of 8-bit bytes, it can be seen from FIG. 2, that the data Z Z 2, in forms of blocks of equal size bytes is received at the input 9 of the encoder 10. The received data is distributed by a data distributor to shift registers SR] and SR2. The distributor 12 applies the incoming data to these shift registers in parallel. The shift registers SR1, SR2 perform the computations previously described to generate the check bytes C, and C These check bytes are appended to the message data at the output 14 of the encoder 10. This encoded data is sent to the multitrack recorder or transmitter for utilization. FIGS. 4 and 5 show the shift registers SR1 and SR2, respectively. Each shift register contains 8 binary storage elements (0) (7) with appropriate feedback connections and modulo 2 summing networks at each input stage. It is implied that with a time control signal, the shift register shifts the contents while simultaneously receiving the new input. Shift register devices of this type are widely known and given the feedback connection, it can be physically constructed from available logic hardware in many different ways.

Referring to FIG. 4, each input bit Z(O) Z(7) of the 8-bit byte is applied to a separate modulo 2 summing circuit 16 at the input to each of the eight separate shift register storage elements 18. The output 20 of each binary storage element 18 is fed back via a feedback connection 22 to the modulo 2 adding circuit 16 at the input thereto along with the new input.

In FIG. 5, each of the 8-bits Z(O) 2(7) of an 8-bit byte are shown as inputs to the modulo 2 adder circuits 20 27 at the input to each storage element of the shift register. The outputs 30 37 of each of the binary storage elements (0) (7) are connected to certain ones of the modulo 2 adder circuits 20 27 in accordance with the columns of the matrix T which is given in equation (10). For example, the output 30 of the 0" storage element is connected back to the modulo 2 adder circuits 21 and 24 at the inputs of the first and fourth stages of the shift register. These connections are made in accordance with the 0" column of T which has 1s in the first and fourth positions. The new 8-bit vector input is entered into the register via the modulo 2 adding circuits 20 27 simultaneously with the feedback mentioned. If an 8-digit byte X represents the present contents of shift register SR1 and shift register SR2 and Y representing the input is entered with a shifting operation; then the next contents in shift register SR1 is YGBX and in shift register SR2 is YBT X.

The information is entered into the shift registers SR1 and SR2 in reverse order, that is, 2,. is entered first and Z is entered last. After the last byte Z has entered, the registers are shifted one more time with a input.

The contents of shift register SR1 will be Z 63 Z 63. .632 which represents the first check byte. The contents of shift register SR2 will be T Z 63 T Z 9 .65 T 2,. which is the second check byte. At the start time of the encoder 10, t the binary counter 40 is set to k l. The counter counts down in synchronism with the timing control signal. At count 0, the last shift of shift register SR1 and SR2 generates the respective check bytes. The count 0 signal obtained from the counter 40 closes the switches SW] and SW2 after a unit time delay (during the next timing signal).

Referring to FIG. 3, the decoder 42 receives the ent coded read or utilized message bytes Z,, Z Z C C, and the pointers P P P P P which indicate the tracks in error. The decoder 42 cornputes from these inputs the corrected data bytes 2,, 2 2,, or generates an uncorrectable error signal E. The symbol represents the corrected data.

The decoder 42 first computes the syndromes 8, and S, in shift registers SR1 and SR2, as shown in FIGS. 4 and from the read or received encoded message bytes Z Z Z C C according to equations (3) and (4). The message bytes Z Z Z, are applied to the shift registers SR1 and SR2 in that order by the read message distributor 44. Of course, the decoding is being performed to correct any errors that may have been introduced to the message as a result of the utilization thereof, either in the recorder or in the transmission with respect thereto. As each byte of the input message is received at the shift registers SR1 and SR2, the registers are simultaneously shifted by means of a time control signal. After the byte Z, has entered, the byte C, is entered into shift register SR] and the byte C is entered into shift register SR2 while shifting the registers once. The contents of shift register SR1 is now 's; 25o 25's; .e Z which is the syndrome 3,. The contents of shift register SR2 is now C 69 T 2, F X Z,@ .BT 2,. which is the syndrome S The syndrome generation is controlled by the timing control signal. The binary counter B is set to k l at time t (starting time for the decoder) and counts down in synchronism with the timing control signals. At count 0, the last shift of shift registers SR1 and SR2 results in S l as the contents of the shift register SR1 and S as the contents of shift register SR2.

The count 0 signal from the counter B starts counter B, after a unit time delay, that is, with the next timing control signal. B, is set to the binary value y at time t Counter B counts down in synchronism with the timing control signal which continuously shifts registers SR1 and SR2 also. At the count 0, in the counter B the switch SW1 is closed. This causes the contents of shift register SR1 which is S, to enter shift register SR2. Accordingly, the contents of shift register SR2 is 5 69 T" S, and the contents of shift register SR1 remains 8,.

The count 0 signal generated by counter B initiates 8;, after a unit time delay, that is, with the next timing control signal. Counter B is set to the binary value x at time t Counter B counts down in synchronism with the timing control signal which continuously shifts registers SR1 and SR2. At the count 0 in the counter B the last shift of SR1 and SR2 produces T' (5,69 7

The count 0 signal from the counter B closes the switches SW2 and SW3 after a unit time delay (with the next timing control signal). The switch SW3 is also controlled by the pointer signal P as described later in connection with the error corrector circuit.

FIG. 6 shows schematically the error track parameters generator 46 which generates the parameters x and y as binary numbers from the input pointer signals P P P,,.,P,,. P The error track parameters generator 46 also generates the new pointers 1,, I 1,, identifying the first erroneous data track which is called the Ith track. It also generates the signals N N,, N in dicating respectively, 0, l and more than 2 tracks in error. The error track parameters generator 46 of F IG. 6 indicates that the logic circuits 6a,. 6b, 6c and 6d are in cluded in order to obtain the above-noted outputs.

Referring to FIG. 60, there is shown the logic net work connections for generating the l pointers I I which identifies the first erroneous data track called the Ith track. Combinations of the pointer signals P, P are utilized as inputs to AND circuits 50. The combinations are arranged in successively increasing order of 1. For example, the grouping is P then P,, P followed by P P P etc. It should be observed that all of the inputs except the additional input in each of the combinations is inverted in a NOT circuit at the inputs to the respective AND circuits 50. It can be seen that as long as all the pointer inputs are 0, there will be.

no output from any of the AND circuits. However, the first non-zero pointer signal will be indicated by an out put from its corresponding AND circuit. That is, the AND circuit 50 having that pointer as the additional pointer input.

FIG. 6b has as inputs the I pointers generated in FIG. 6a. This circuit generates the y parameters as a b-bit binary number y y,,, y,, y The input combinations of the I pointers is determined according to Table 3. The logic connections can be determined by retabulating y as a b-bit binary number with the corresponding I pointers as shown in Table 3.

Table 3. Parameter y as a binary member y as binary number i Indicated by y ya .Yz yr ya 1 I, 14 l l l 0 2 I, l3 1 l 0 1 3 I 12 l l 0 0 4 I 1 l l O l l 5 l l0 1 0 l 0 6 l 9 l 0 0 l Therefore, the signals y y y and y are generated from 1 I 1 The input I pointer signals are combined into three groups of three and then a group of all six. These are inputted to OR circuits 52 which produce the y parameter outputs. It will be appreciated that y is always a logical one when any of the I signals is logical l. y: is a logical 1 when I, or 1 or 1 is a logical 1. y is a logical 1 when I, or I, or 1 is a logical 1.

FIG. 6c shows a logic circuit diagram which generates the x parameter as a b-bit binary number x x x x from the P pointers. Before the x parameter-can be generated, the (i-i) values must be generated from the track pointers P P P.,. This is accomplished by combining the P pointers into pairs of inputs to sepa: rate AND circuits 56. It can be seen that the input paired arrangement of pointers has the first group of pairs separated by the value 1, while the second group of pairs is separated by the value 2, the third group by the value 3, the fourth group by the value 4 and the last pair by the value 5. Each of these P pointer pairs is fed to respective AND circuits 56 whose outputs are inputted to appropriate OR circuits 58 to obtain the appropriate ji value. For example, ji 1 is obtained from the OR circuit 58 connected to the AND circuits 56 having as inputs thereto the pairs separated by 1. Similarly, the other OR circuits 58 have connections thereto based on similar properties. For example, the second OR circuit 58 has an output value ji 2, while the third has a value ji 3 and the fourth has a value ji 4. Each of these j-i values are connected to the appropriate OR circuits 60. The connections for the associated functions are determined by means of Table 4 which is derived from Table l. The procedure is similar 7 to that in generating the connections for the previous parameter. The parameter at then is obtained as a b-bit binary number with signals x x x,, x,,.

Table 4. Parameter x as a binary number x as a binary number ji Function x x, x, x, x or F7 N,+P, 0 0 0 0 0 1 P,P,+P,1 ,+P,P,+P,P,+P,P, 3 0 0 1 1 2 P,P,+1 ,P,+P,P,+P, 6 0 1 1 0 3 P,P,+P,P,+P,p, 1 1 1 0 1 1 4 P,P. ,+P,P, 12 1 1 0 0 5 1 ,1. 5 0 1 o 1 Note that P does not participate 1n the determination of the values ji. Also, ji 0 or j k+2 does not generate logical 1 on any of the x x,, x,,, x, signal outputs.

FIG. 6d shows the circuit arrangement for generating the control signals N,,, N, and N N, indicates that none of the track pointers P,, P P are on. N, indicates only I is on. N, indicates that more than two track pointers are on. The N signal is generated as an output from an AND circuit 62 having the 8 pointer signals P, P, as inputs thereto. It can be seen that any one of the pointer inputs being on will cause no output from the AND circuit 62. Thus, the absence of N indicates that there is an energized track pointer. The N, output is obtained from a one and only one circuit 64 which likewise has the pointers P, through P, as inputs thereto. The output N, will only by obtained from circuit 64 when only one of the pointer inputs thereto is energized. The output N is obtained from a threshold network 66 which provides a logical one output when more than two of the inputs have logical ls.

Referring to FIG. 7, there is shown the error correct or circuit 8 which produces the corrected data bytes Z,, Z,, Z, by combining the read data bytes Z,', 2,, 2 the error pattern byte e, and the pointer signals 1,, 1,. and P, P The combining is done in accordance with the equations (21) and (22). These two equations are interpreted as follows.

lfj= k 2, i.e., the pointer P is on, then e, the output of SR2 should be inhibited. The inhibiting is done by AND gates (switch SW3) as shown in FIG. 3. Otherwise, e, is added (modulo 2) to the erroneous read bytes and S, is added to the first erroneous read byte. This is accomplished by a set of 8 modulo 2 summing networks 70 and 2 sets of 8 AND gates 72,74 for each data byte 2,, 2,, Z Z 2,, Z, as shown in FIG. 7. The first set of 8 AND gates 72 acts like a normally closed gate controlled by the corresponding track pointer signal and passes the e, byte only when that track pointer is on. The second set of 8 AND gates 74 are controlled by the corresponding l signal and pass syndrome S, only when that l pointer is on. The set of 8 modulo 2 summing networks combine the input signals 2,, e, and S, to produce the corrected byte Z,.

Referring to FIG. 8, there is shown the uncorrectable error indicator logic circuit for detection of a large percentage of uncorrectable errors. This circuit generates an error indicator signal E when one of the following happens:

1. N is on indicating more than two tracks are in error. This can be seen from the N input to the last OR circuit 81.

2. N, is on indicating that only one track is in error and that e,, the output of SR2, is not 0 in all bit positions. This is accomplished by having N, and e, 9* 0 sig nals as inputsto an AND circuit 82, the output of which forms one of the inputs to the OR circuit 81. The e, 9* 0 signal is generated by an OR circuit 83 which receives all of the e, bits as its input.

3. N is on indicating that no track is in error when e,, the output of SR2, or S,, the output of SR1, is not 0 in all bit positions. This is accomplished by deriving an S, i 0 signal from OR circuit 85 which has all the bits of S, as inputs thereto. The S, a 0 signal is applied as an input to AND circuit 84 along with the N input. The AND circuit 84 output is connected to OR circuit 81. The e, 0 signal and the N signal are connected as inputs to an AND circuit 86 whose output forms another input connection to OR circuit 81. Thus, any one of the inputs N,,, N, and N under the conditions enumerated above, produces an output signal E from OR circuit 81 indicating detection of uncorrectable errors. While the invention has been particularly shown and described with reference to a preferred embodiment thereof, it will be understood by those skilled in the art that the foregoing and other changes in form and detail may be made therein without departing from the spirit and scope of the invention.

What is claimed is: l. A system for correcting two tracks in error in a multi-track data arrangement, comprising:

means for providing message data Z,, Z Z 2,, arranged in blocks having k bytes arranged in a cross track direction, each byte having f bits of data wheref= b X m where b and m are integers 1 and k is an integer 2 k 2;

means connected to said means for providing message data for generating two check bytes from said message data in accordance with the equations:

where T is the companion matrix of a binary primitive polynomial g(x) of degree f and )t is any integer given by the expression t( 2-l )/(2"l in which t is any positive integer prime to 2l;

means connected to said means for providing message data and to said means for generating two check bytes for appending said two check bytes to said message data to form an encoded message; means connected to said means for appending said two check bytes to said message data for utilizing said encoded message;

means connected to said utilization means for decoding said encoded message denoted by Z Z Z C C,'; said decoding means including first and second shift registers for generating first and second syndromes S. and S, from said encoded message in accordance with the equations:

means for providing error track pointer signals as inputs to said decoder which identify the tracks in error; error track parameters signal generating means connected to said means for providing error track pointer signals for providing fixed signals in accordance with the tracks indicated to be in error;

means connected to said error track parameters signal generating means for generating control signals for the operation of said decoder; and

error correcting means connected to said first and second shift registers, to said means for providing identifying signals, to said means for providing control signals, and to said utilization means for providing error correction of the erroneous bytes in any two indicated tracks in error.

2. A system according to claim I, wherein said means for generating said two check bytes includes a data distributor and first and second feedback shift registers connected to said data distributor, said first shift register providing modulo 2 addition of the information bytes successively applied thereto from said data distributor and said second shift register providing the product of the contents thereof and the incoming byte from said data distributor and the modulo 2 addition thereof with the product of the contents thereof and the next input byte.

3. A system according to claim 2, wherein said second feedback shift register has f data stages and a modulo 2 summing circuit at the input to each stage, the feedback connections of each of said stages of said feedback shift register are determined in accordance with the digital l contents of the corresponding column of the matrix T, the positions of the 1's in the column determining feedback connections to the modulo 2 summing circuits at the inputs of the shift register stages having corresponding numerical positions in said feedback shift register.

4. A system according to claim 1, wherein said error track parameters signal generating means receives error track pointer signals P,, P P P P from said means for providing error track pointer signals and generates parameters x and y as binary numbers, new pointers 1 I 1,, identifying the first erroneous data track, and the signals N N and N indicating respectively, 0, l and more than 2 tracks in error.

5. A system according to claim 4, wherein said error track parameters signal generating means includes a plurality of logical AND and NOT circuits having as inputs thereto the track in error pointer signals P P P from said means for providing pointer signals arranged in groups of increasing order by a pointer value of 1 starting with P P P P P P P 1 1 P all the pointer signals except the additional pointer signal in each group being connected through one of said NOT circuits so that an output I, is obtained from the AND circuit in which the additional pointer signal has a "1 input thereby identifying the first data track in error.

6. A system according to claim .5, wherein said error track parameters signal generating means further includes a first plurality of OR circuits, said I. signals identifying the first track in error are grouped as inputs to said first plurality of OR circuits, the grouping is predetermined in accordance with a table wherein the output y parameter is obtained as a predetermined b-bit binary number.

"I. A system according to claim 4, wherein said error track parameters signal generating means, further includes a second plurality of AND circuits and a second and third plurality of OR circuits said second plurality of AND circuits having error track pointer signals as inputs thereto arranged in groups of pairs, said pairs of said first group being all possible adjacent pairs, said pairs of said second group being all possible pairs separated by one error track pointer signal input said pairs of said third group being all possible pairs separated by two error traclt pointer signal inputs, said pairs of said It group being all possible pairs separated by k-l error track pointer signal inputs, the outputs of each of said groups of second plurality of AND circuits are connected to respective ones of said second plurality of OR circuits whose outputs correspond to the j-i 1 to the ji k-1 value; each of the j-i value outputs being connected as inputs to said thirdplurality of OR circuits, the connections being determined in accordance with a predetermined table giving said J: parameter as a b-bit binary number.

8. A system in accordance with claim 4, wherein said error track parameters signal generating means further includes a combination of a plurality of NOT circuits connected to an AND circuit, a one and only one circult, and a threshold circuit, each of said circuits having the error track parameters signals from said error track parameters signal generating means as inputs thereto and having said signals N N and N as outputs therefrom, respectively, representing 0, l and more than two tracks in error.

9. A system in accordance with claim 4, wherein said means for generating control signals includes counting means which are energized to count down simultaneously with the shift signal for said shift registers SR1 and SR2;

means for setting said counting means to the binary value of x generated by said error track parameters signal generating means and counting down to 0 in synchronism with the shifting of SR1 and SR2 to introduce the parameter y into the error pattern e, computation which is computed from the syndromes S and 8, according to:

ill. A system according to claim 9, wherein inhibiting means are provided connected to the output of shift register SR2 for inhibiting the e, output when j k+2 and pointer P is on indicating the k+2 track is in error.

111. A system according to claim 10, wherein said error correcting means includes means for adding (modulo 2) error pattern e erroneous read bytes Z", 2,, Z and syndrome S, to obtain the corrected bytes 2,, 2 Z

16 signals, respectively; said N, signal indicating that more than two tracks are in error, and said N signal indicating that only one track is in error and that e, is not 0 in all bit positions, and said N signal indicating that no track is in error when e, or S is not 0 in all bit positions. l l l I! 

1. A system for correcting two tracks in error in a multi-track data arrangement, comprising: means for providing message data Z1, Z2, Z3, . . . Zk arranged in blocks having k bytes arranged in a cross track direction, each byte having f bits of data where f b X m where b and m are integers >1 and k is an integer 2<k<2b; means connected to said means for providing message data for generating two check bytes from said message data in accordance with the equations: C1 Z1 + Z2 + Z3 . . . + Zk and C2 T Z1 + T2 Z2 + . . . + Tk Zk where T is the companion matrix of a binary primitive polynomial g(x) of degree f and lambda is any integer given by the expression t(2b-1)/(2b-1) in which t is any positive integer prime to 2b-1; means connected to said means for providing message data and to said means for generating two check bytes for appending said two check bytes to said message data to form an encoded message; means connected to said means for appending said two check bytes to said message data for utilizing said encoded message; means connected to said utilization means for decoding said encoded message denoted by Z1'', Z2'', . . . Zk'', C1'', C2''; said decoding means including first and second shift registers for generating first and second syndromes S1 and S2 from said encoded message in accordance with the equations: S1 C1'' + Z1'' Z2'' + . . . + Zk'' and S2 C2'' + T Z1'' + T2 Z2'' + . . . + Tk Zk'' means for providing error track pointer signals as inputs to said decoder which identify the tracks in error; error track parameters signal generating means connected to said means for providing error track pointer signals for providing fixed signals in accordance with the tracks indicated to be in error; means connected to said error track parameters signal generating means for generating control signals for the operation of said decoder; and error correcting means connected to said first and second shift registers, to said means for providing identifying signals, to said means for providing control signals, and to said utilization means for providing error correction of the erroneous bytes in any two indicated tracks in error.
 2. A system according to claim 1, wherein said means for generating said two check bytes includes a data distributor and first and second feedback shifT registers connected to said data distributor, said first shift register providing modulo 2 addition of the information bytes successively applied thereto from said data distributor and said second shift register providing the product of the contents thereof and the incoming byte from said data distributor and the modulo 2 addition thereof with the product of the contents thereof and the next input byte.
 3. A system according to claim 2, wherein said second feedback shift register has f data stages and a modulo 2 summing circuit at the input to each stage, the feedback connections of each of said stages of said feedback shift register are determined in accordance with the digital ''''1'''' contents of the corresponding column of the matrix Tf , the positions of the 1''s in the column determining feedback connections to the modulo 2 summing circuits at the inputs of the shift register stages having corresponding numerical positions in said feedback shift register.
 4. A system according to claim 1, wherein said error track parameters signal generating means receives error track pointer signals P1, P2, . . . Pk, Pk 1, Pk 2 from said means for providing error track pointer signals and generates parameters x and y as binary numbers, new pointers I1, I2, . . . Ik identifying the first erroneous data track, and the signals N0, N1 and N3 indicating respectively, 0, 1 and more than 2 tracks in error.
 5. A system according to claim 4, wherein said error track parameters signal generating means includes a plurality of logical AND and NOT circuits having as inputs thereto the track in error pointer signals P1, P2, . . . Pk from said means for providing pointer signals arranged in groups of increasing order by a pointer value of 1 starting with P1, P1P2, P1P2P3, . . . P1P2P3 . . . Pk, all the pointer signals except the additional pointer signal in each group being connected through one of said NOT circuits so that an output Ii is obtained from the AND circuit in which the additional pointer signal has a ''''1'''' input thereby identifying the first data track in error.
 6. A system according to claim 5, wherein said error track parameters signal generating means further includes a first plurality of OR circuits, said Ii signals identifying the first track in error are grouped as inputs to said first plurality of OR circuits, the grouping is predetermined in accordance with a table wherein the output y parameter is obtained as a predetermined b-bit binary number.
 7. A system according to claim 4, wherein said error track parameters signal generating means, further includes a second plurality of AND circuits and a second and third plurality of OR circuits said second plurality of AND circuits having error track pointer signals as inputs thereto arranged in groups of pairs, said pairs of said first group being all possible adjacent pairs, said pairs of said second group being all possible pairs separated by one error track pointer signal input, said pairs of said third group being all possible pairs separated by two error track pointer signal inputs, said pairs of said kth group being all possible pairs separated by k-1 error track pointer signal inputs, the outputs of each of said groups of second plurality of AND circuits are connected to respective ones of said second plurality of OR circuits whose outputs correspond to the j-i 1 to the j-i k-1 value; each of the j-i value outputs being connected as inputs to said third plurality of OR circuits, the connections being determined in accordance with a predetermined table giving said x parameter as a b-bit Binary number.
 8. A system in accordance with claim 4, wherein said error track parameters signal generating means further includes a combination of a plurality of NOT circuits connected to an AND circuit, a ''one and only one'' circuit, and a threshold circuit, each of said circuits having the error track parameters signals from said error track parameters signal generating means as inputs thereto and having said signals N0, N1 and N3 as outputs therefrom, respectively, representing 0, 1 and more than two tracks in error.
 9. A system in accordance with claim 4, wherein said means for generating control signals includes counting means which are energized to count down simultaneously with the shift signal for said shift registers SR1 and SR2; means for setting said counting means to the binary value of x generated by said error track parameters signal generating means and counting down to 0 in synchronism with the shifting of SR1 and SR2 to introduce the parameter y into the error pattern ej computation which is computed from the syndromes S1 and S2 according to: ej Tx (S1 + Ty S2).
 10. A system according to claim 9, wherein inhibiting means are provided connected to the output of shift register SR2 for inhibiting the ej output when j k+2 and pointer Pk 2 is on indicating the k+2 track is in error.
 11. A system according to claim 10, wherein said error correcting means includes means for adding (modulo 2) error pattern ej, erroneous read bytes Z1'', Z2'', . . . Zk'' and syndrome S1 to obtain the corrected bytes Z1, Z2, . . . Zk.
 12. A system according to claim 4, wherein said decoding means further includes an uncorrectable error indicating circuit connected to said error track parameters signal generating means which provides said N0, N1, and N3 signals, and to said shift registers SR1 and SR2 which provide syndrome S1 and error pattern ej signals, respectively; said N3 signal indicating that more than two tracks are in error, and said N1 signal indicating that only one track is in error and that ej is not 0 in all bit positions, and said N0 signal indicating that no track is in error when ej or S1 is not 0 in all bit positions. 